<?php

/**
 * Super awesome debug function
 * 
 * @param mix $bar Whateva Treva
 * @param str[optional] $title Figure it out.
 */
function foo($bar, $title = 'debug') {
	
    $debug = debug_backtrace();
	
    $file = $debug[0]['file'];
    $line = $debug[0]['line'];
    
    echo "<strong>$title</strong>
          <p style='font-size:13px'>Called from: $file,  [line: $line]</p>
          <pre>";
    print_r($bar);
    
    echo '</pre>';
       
}